package hhm.framessm.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbUserMetaExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbUserMetaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUmIdIsNull() {
            addCriterion("um_id is null");
            return (Criteria) this;
        }

        public Criteria andUmIdIsNotNull() {
            addCriterion("um_id is not null");
            return (Criteria) this;
        }

        public Criteria andUmIdEqualTo(Integer value) {
            addCriterion("um_id =", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdNotEqualTo(Integer value) {
            addCriterion("um_id <>", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdGreaterThan(Integer value) {
            addCriterion("um_id >", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("um_id >=", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdLessThan(Integer value) {
            addCriterion("um_id <", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdLessThanOrEqualTo(Integer value) {
            addCriterion("um_id <=", value, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdIn(List<Integer> values) {
            addCriterion("um_id in", values, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdNotIn(List<Integer> values) {
            addCriterion("um_id not in", values, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdBetween(Integer value1, Integer value2) {
            addCriterion("um_id between", value1, value2, "umId");
            return (Criteria) this;
        }

        public Criteria andUmIdNotBetween(Integer value1, Integer value2) {
            addCriterion("um_id not between", value1, value2, "umId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUmKeyIsNull() {
            addCriterion("um_key is null");
            return (Criteria) this;
        }

        public Criteria andUmKeyIsNotNull() {
            addCriterion("um_key is not null");
            return (Criteria) this;
        }

        public Criteria andUmKeyEqualTo(String value) {
            addCriterion("um_key =", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyNotEqualTo(String value) {
            addCriterion("um_key <>", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyGreaterThan(String value) {
            addCriterion("um_key >", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyGreaterThanOrEqualTo(String value) {
            addCriterion("um_key >=", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyLessThan(String value) {
            addCriterion("um_key <", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyLessThanOrEqualTo(String value) {
            addCriterion("um_key <=", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyLike(String value) {
            addCriterion("um_key like", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyNotLike(String value) {
            addCriterion("um_key not like", value, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyIn(List<String> values) {
            addCriterion("um_key in", values, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyNotIn(List<String> values) {
            addCriterion("um_key not in", values, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyBetween(String value1, String value2) {
            addCriterion("um_key between", value1, value2, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmKeyNotBetween(String value1, String value2) {
            addCriterion("um_key not between", value1, value2, "umKey");
            return (Criteria) this;
        }

        public Criteria andUmValueIsNull() {
            addCriterion("um_value is null");
            return (Criteria) this;
        }

        public Criteria andUmValueIsNotNull() {
            addCriterion("um_value is not null");
            return (Criteria) this;
        }

        public Criteria andUmValueEqualTo(String value) {
            addCriterion("um_value =", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueNotEqualTo(String value) {
            addCriterion("um_value <>", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueGreaterThan(String value) {
            addCriterion("um_value >", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueGreaterThanOrEqualTo(String value) {
            addCriterion("um_value >=", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueLessThan(String value) {
            addCriterion("um_value <", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueLessThanOrEqualTo(String value) {
            addCriterion("um_value <=", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueLike(String value) {
            addCriterion("um_value like", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueNotLike(String value) {
            addCriterion("um_value not like", value, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueIn(List<String> values) {
            addCriterion("um_value in", values, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueNotIn(List<String> values) {
            addCriterion("um_value not in", values, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueBetween(String value1, String value2) {
            addCriterion("um_value between", value1, value2, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmValueNotBetween(String value1, String value2) {
            addCriterion("um_value not between", value1, value2, "umValue");
            return (Criteria) this;
        }

        public Criteria andUmEditdateIsNull() {
            addCriterion("um_editdate is null");
            return (Criteria) this;
        }

        public Criteria andUmEditdateIsNotNull() {
            addCriterion("um_editdate is not null");
            return (Criteria) this;
        }

        public Criteria andUmEditdateEqualTo(Date value) {
            addCriterion("um_editdate =", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateNotEqualTo(Date value) {
            addCriterion("um_editdate <>", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateGreaterThan(Date value) {
            addCriterion("um_editdate >", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateGreaterThanOrEqualTo(Date value) {
            addCriterion("um_editdate >=", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateLessThan(Date value) {
            addCriterion("um_editdate <", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateLessThanOrEqualTo(Date value) {
            addCriterion("um_editdate <=", value, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateIn(List<Date> values) {
            addCriterion("um_editdate in", values, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateNotIn(List<Date> values) {
            addCriterion("um_editdate not in", values, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateBetween(Date value1, Date value2) {
            addCriterion("um_editdate between", value1, value2, "umEditdate");
            return (Criteria) this;
        }

        public Criteria andUmEditdateNotBetween(Date value1, Date value2) {
            addCriterion("um_editdate not between", value1, value2, "umEditdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}